<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SYMMETRY: tree::cThreadedRep&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SYMMETRY
   </div>
   <div id="projectbrief">C++LIBRARYFORSCIENTIFICCOMPUTATION</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classtree_1_1cThreadedRep.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classtree_1_1cThreadedRep-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">tree::cThreadedRep&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="threaded__rep_8h_source.html">threaded_rep.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for tree::cThreadedRep&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classtree_1_1cThreadedRep__coll__graph.png" border="0" usemap="#tree_1_1cThreadedRep_3_01T_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="tree_1_1cThreadedRep_3_01T_01_4_coll__map" id="tree_1_1cThreadedRep_3_01T_01_4_coll__map">
<area shape="rect" id="node2" href="structtree_1_1btree__threaded__node.html" title="{tree::btree_threaded\l_node\&lt; T \&gt;\n|+ rTag\l+ lTag\l|+ btree_threaded_node()\l+ btree_threaded_node()\l}" alt="" coords="5,147,187,269"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa2df7e02a980552a4a16e4c669049654"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2df7e02a980552a4a16e4c669049654"></a>
typedef <a class="el" href="structtree_1_1btree__threaded__node.html">btree_threaded_node</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>node_type</b></td></tr>
<tr class="separator:aa2df7e02a980552a4a16e4c669049654"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9f5a3607794b24b7cda7d2288ce2cc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9f5a3607794b24b7cda7d2288ce2cc8"></a>
typedef <a class="el" href="classtree_1_1btree__iterator.html">btree_iterator</a>&lt; T, <br class="typebreak"/>
<a class="el" href="structtree_1_1btree__threaded__node.html">node_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
<tr class="separator:ac9f5a3607794b24b7cda7d2288ce2cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec013eb2bc9a327239d1366f039ed94e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aec013eb2bc9a327239d1366f039ed94e"></a>
typedef <a class="el" href="classtree_1_1btree__inorder__iterator.html">btree_inorder_iterator</a><br class="typebreak"/>
&lt; T, <a class="el" href="structtree_1_1btree__threaded__node.html">node_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>inorder_iterator</b></td></tr>
<tr class="separator:aec013eb2bc9a327239d1366f039ed94e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a462ebaa3cc1325d075bf8ac280f65a9b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#a462ebaa3cc1325d075bf8ac280f65a9b">operator==</a> (const <a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a> &amp;bin_rep)</td></tr>
<tr class="separator:a462ebaa3cc1325d075bf8ac280f65a9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecd82c23c72edb946467838b46d37f86"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtree_1_1btree__inorder__iterator.html">inorder_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#aecd82c23c72edb946467838b46d37f86">begin_inorder</a> ()</td></tr>
<tr class="separator:aecd82c23c72edb946467838b46d37f86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c420c636dc2ec5385edc6e514d739ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtree_1_1btree__inorder__iterator.html">inorder_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#a8c420c636dc2ec5385edc6e514d739ff">end</a> ()</td></tr>
<tr class="separator:a8c420c636dc2ec5385edc6e514d739ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4ba780c69109062000b5bad7b382e15"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#ae4ba780c69109062000b5bad7b382e15">insertLeftChild</a> (<a class="el" href="classtree_1_1btree__iterator.html">iterator</a> iter, const T &amp;data)</td></tr>
<tr class="separator:ae4ba780c69109062000b5bad7b382e15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2e67bf601d8d1d55b83c05d1162b7e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#af2e67bf601d8d1d55b83c05d1162b7e2">insertRightChild</a> (<a class="el" href="classtree_1_1btree__iterator.html">iterator</a> iter, const T &amp;data)</td></tr>
<tr class="separator:af2e67bf601d8d1d55b83c05d1162b7e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa41d7c0738b86fa1efcd5c0a9d5bc2a1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa41d7c0738b86fa1efcd5c0a9d5bc2a1"></a>
<a class="el" href="classtree_1_1btree__iterator.html">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>insertRoot</b> (const T &amp;data)</td></tr>
<tr class="separator:aa41d7c0738b86fa1efcd5c0a9d5bc2a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93489947fed29ed25fbb7268cbae049d"><td class="memTemplParams" colspan="2">template&lt;typename FUNC &gt; </td></tr>
<tr class="memitem:a93489947fed29ed25fbb7268cbae049d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtree_1_1cThreadedRep.html#a93489947fed29ed25fbb7268cbae049d">traverse</a> (FUNC &amp;visit)</td></tr>
<tr class="separator:a93489947fed29ed25fbb7268cbae049d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a0b6f3dbf4b6f24795563bed2fea6a7e5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b6f3dbf4b6f24795563bed2fea6a7e5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cThreadedRep</b> (const <a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a> &amp;bin_rep)</td></tr>
<tr class="separator:a0b6f3dbf4b6f24795563bed2fea6a7e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad872e3bf5a20f7b7ce0e0148edf682cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad872e3bf5a20f7b7ce0e0148edf682cf"></a>
<a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a> &amp;bin_rep)</td></tr>
<tr class="separator:ad872e3bf5a20f7b7ce0e0148edf682cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ab973b2dff5006a341af704098731fe8e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab973b2dff5006a341af704098731fe8e"></a>
<a class="el" href="structtree_1_1btree__threaded__node.html">node_type</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_Root</b></td></tr>
<tr class="separator:ab973b2dff5006a341af704098731fe8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class tree::cThreadedRep&lt; T &gt;</h3>

<p>threaded binary tree representation !only inorder iterators and traversal </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aecd82c23c72edb946467838b46d37f86"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtree_1_1btree__inorder__iterator.html">inorder_iterator</a> <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::begin_inorder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>returns an iterator to the beginning of the tree for inorder traversal </p>

</div>
</div>
<a class="anchor" id="a8c420c636dc2ec5385edc6e514d739ff"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtree_1_1btree__inorder__iterator.html">inorder_iterator</a> <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>returns an empty iterator signifying the end of the tree ! used in constructs like for(iterator it = tree.begin(); it != tree.end(); it++) </p>

</div>
</div>
<a class="anchor" id="ae4ba780c69109062000b5bad7b382e15"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a> <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::insertLeftChild </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a>&#160;</td>
          <td class="paramname"><em>iter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>inserts data as a left child of the node indicated by the iterator </p>

</div>
</div>
<a class="anchor" id="af2e67bf601d8d1d55b83c05d1162b7e2"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a> <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::insertRightChild </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtree_1_1btree__iterator.html">iterator</a>&#160;</td>
          <td class="paramname"><em>iter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>inserts data as a right child of the node indicated by the iterator </p>

</div>
</div>
<a class="anchor" id="a462ebaa3cc1325d075bf8ac280f65a9b"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>bin_rep</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>checks for equality &ndash; !compares the data in every node of the tree for equality </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classtree_1_1cThreadedRep_a462ebaa3cc1325d075bf8ac280f65a9b_cgraph.png" border="0" usemap="#classtree_1_1cThreadedRep_a462ebaa3cc1325d075bf8ac280f65a9b_cgraph" alt=""/></div>
<map name="classtree_1_1cThreadedRep_a462ebaa3cc1325d075bf8ac280f65a9b_cgraph" id="classtree_1_1cThreadedRep_a462ebaa3cc1325d075bf8ac280f65a9b_cgraph">
<area shape="rect" id="node2" href="classtree_1_1cThreadedRep.html#aecd82c23c72edb946467838b46d37f86" title="tree::cThreadedRep\l::begin_inorder" alt="" coords="218,5,366,46"/><area shape="rect" id="node3" href="classtree_1_1cThreadedRep.html#a8c420c636dc2ec5385edc6e514d739ff" title="tree::cThreadedRep::end" alt="" coords="203,71,381,97"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a93489947fed29ed25fbb7268cbae049d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<div class="memtemplate">
template&lt;typename FUNC &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classtree_1_1cThreadedRep.html">tree::cThreadedRep</a>&lt; T &gt;::traverse </td>
          <td>(</td>
          <td class="paramtype">FUNC &amp;&#160;</td>
          <td class="paramname"><em>visit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>traverse the binary tree in the given tree_traversal order takes a function object as a parameter, which must implement operator(T) </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>tree/<a class="el" href="threaded__rep_8h_source.html">threaded_rep.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>tree</b></li><li class="navelem"><a class="el" href="classtree_1_1cThreadedRep.html">cThreadedRep</a></li>
    <li class="footer">Generated on Tue Feb 25 2014 17:11:52 for SYMMETRY by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
